package com.km.service.impl;

import com.km.dao.DingdingTokenDao;
import com.km.entity.DingdingTokenEntity;
import com.km.service.DingdingTokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service("dingdingTokenService")
public class DingdingTokenServiceImpl implements DingdingTokenService {
    @Autowired
    private DingdingTokenDao dingdingTokenDao;

    @Override
    public DingdingTokenEntity queryObject(Long id) {
        return dingdingTokenDao.queryObject(id);
    }

    @Override
    public List<DingdingTokenEntity> queryList(Map<String, Object> map) {
        return dingdingTokenDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return dingdingTokenDao.queryTotal(map);
    }

    @Override
    public void save(DingdingTokenEntity dingdingToken) {
        dingdingTokenDao.save(dingdingToken);
    }

    @Override
    public void update(DingdingTokenEntity dingdingToken) {
        dingdingTokenDao.update(dingdingToken);
    }

    @Override
    public void delete(Long id) {
        dingdingTokenDao.delete(id);
    }

    @Override
    public void deleteBatch(Long[] ids) {
        dingdingTokenDao.deleteBatch(ids);
    }

}
